﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace JQData.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class v107 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "SourceSellTradeIds",
                table: "HotMoneyStockCycleProfit",
                newName: "StockName");

            migrationBuilder.RenameColumn(
                name: "SourceBuyTradeIds",
                table: "HotMoneyStockCycleProfit",
                newName: "SourceTradeIds");

            migrationBuilder.AddColumn<string>(
                name: "HotmoneyName",
                table: "HotMoneyStockCycleProfit",
                type: "longtext",
                nullable: true)
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "HotmoneyName",
                table: "HotMoneyStockCycleProfit");

            migrationBuilder.RenameColumn(
                name: "StockName",
                table: "HotMoneyStockCycleProfit",
                newName: "SourceSellTradeIds");

            migrationBuilder.RenameColumn(
                name: "SourceTradeIds",
                table: "HotMoneyStockCycleProfit",
                newName: "SourceBuyTradeIds");
        }
    }
}
